package com.itheima.fileIO;

import java.io.File;

public class fileDemo02 {
    public static void main(String[] args) {
        File abc=new File("F:\\abc");

        deleteabc(abc);
    }

    private static void deleteabc(File abc) {
        File[] files = abc.listFiles();
        for (File file : files) {
            if (file.isFile()){
                file.delete();
            }else{
                deleteabc(file);
            }
        }
        abc.delete();
    }
}
